 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>假日活动详情</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <#include "/view/admin/head.html"/>
     <style type="text/css">
        .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }


    </style>

</head>
	
	<script>
	function load(){
			
		var tm="<#if (tm)??>${tm?string('yyyy-MM-dd HH:mm')}</#if>";
		var beginTime="<#if (czjfestivalact.beginTime)??>${czjfestivalact.beginTime?string('yyyy-MM-dd HH:mm')}</#if>";
		var endTime="<#if (czjfestivalact.endTime)??>${czjfestivalact.endTime?string('yyyy-MM-dd HH:mm')}</#if>";
		  var d1 = new Date(beginTime.replace(/\-/g, "\/")); 
		 var d2 = new Date(endTime.replace(/\-/g, "\/")); 
		 var d3 = new Date(tm.replace(/\-/g, "\/")); 
		/* 	Tue May 23 2017 09:27:00 GMT+0800Thu May 25 2017 09:27:00 GMT+0800Wed May 24 2017 15:15:00 GMT+0800 */
		 if(d1<d3 && d2>d3){
			 $("#span1").text("活动中");
			 return ;
		 }
		 if(d2<d3){
			 $("#span1").text("活动已结束	");
			 return ;
		 }
		 if(d2>d3){
			 $("#span1").text("活动未开始	"); 
			 return ;
		 }
	}
	</script>
<body onload="load()">

		<#include "/view/admin/listnav.html"/> 


<div class="table-class">
<#include "/view/admin/opermsg.html"/>
        <table class="table table-bordered">

                <input type="hidden" style="display: none" name="festivalActId" value=""/>



                <tr>
      <!--           <th>活动主题</th>
                <td>
                   ${czjfestivalact.festTheme!?html }
                </td> -->
                


                
                <th>活动名称</th>
                <td>
                ${czjfestivalact.festName!?html }
                </td>
                   <th>活动金额(元)</th>
                <td>
                  ${czjfestivalact.festAmount!?html }
                </td>
                </tr>


                <tr>
                <th>活动地点</th>
                <td>
                  ${czjfestivalact.venue!?html }
                </td>
                


                
                <th>活动开始时间</th>
                <td>
                  <#if (czjfestivalact.beginTime)??>${czjfestivalact.beginTime?string('yyyy-MM-dd HH:mm')}</#if>
                </td>
                </tr>


                <tr>
                <th>活动结束时间</th>
                <td>
                <#if (czjfestivalact.endTime)??>${czjfestivalact.endTime?string('yyyy-MM-dd HH:mm')}</#if>
                </td>
                


                
                <th>视频地址URL</th>
                <td>
                     ${czjfestivalact.festVideo!?html }
                </td>
                </tr>


                <tr>
                <th>活动类型</th>
                <td>
                  <#if czjfestivalact.festType ??>
                          		<#if czjfestivalact.festType==1>
                          			线上活动
                          			<#else>
                          			线下活动
                          		</#if>
                          <#else>
                          --
                          </#if>
                   
                </td>
                


                
                <th>活动状态</th>
                <td>
                    ${czjfestivalact.festState!?html }
                     <span id="span1"></span>
                </td>
                </tr>


                <tr>
                <th>是否显示在首页</th>
                <td>
                     <#if czjfestivalact.ext4 ??>
                          		<#if czjfestivalact.ext4==1>
                          			是
                          			<#else>
                          			否
                          		</#if>
                          <#else>
                          --
                          </#if>
                </td>
                


                
                <th>是否开启评论</th>
                <td>
                
                  <#if czjfestivalact.onOff ??>
                          		<#if czjfestivalact.onOff==1>
                          			已开启评论
                          			<#else>
                          			未开启评论
                          		</#if>
                          <#else>
                          --
                          </#if>
                </td>
                </tr>


               <!--  <tr>
                <th>活动原价金额(元)</th>
                <td>
                  ${czjfestivalact.festAmount!?html }
                </td>
                


                
                <th>活动优惠价格(元)</th>
                <td>
                 ${czjfestivalact.favorablePrice!?html }
                </td>
                </tr> -->


                <tr>
                <th>活动说明</th>
                <td>
                    ${czjfestivalact.fastExplain!?html }
                </td>
                


                
                <th>活动是否可预定</th>
                <td>
                <#if czjfestivalact.reserve ??>
                          		<#if czjfestivalact.reserve==1>
                          			是
                          			<#else>
                          			否
                          		</#if>
                          <#else>
                          --
                          </#if>
                 
                </td>
                </tr>
                
                <tr>
                <th>活动详情大图</th>
                <td>
                <#if czjfestivalact.festPic ??>
                  <img src="<#if czjfestivalact.festPic ??>${base}${czjfestivalact.festPic?html}</#if>"  width="120" height="100" />
             	</#if>
                </td>
                <th>推荐在首页的图片</th>
                <td>
               <#if czjfestivalact.festPicOne ??>
                   <img src="<#if czjfestivalact.festPicOne ??>${base}${czjfestivalact.festPicOne ?html}</#if>"  width="120" height="100" />
              	</#if> 
                </td>
                </tr>
                   <tr>
                <th>列表大图</th>
                <td>
                  <#if czjfestivalact.festPicTwo ??>
                   <img src="<#if czjfestivalact.festPicTwo ??>${base}${czjfestivalact.festPicTwo?html}</#if>"  width="120" height="100" />
               	</#if>
                </td>
                <th>列表小图</th>
                <td>
             <#if czjfestivalact.detailsImg ??>
                   <img src="<#if czjfestivalact.detailsImg ??>${base}${czjfestivalact.detailsImg?html}</#if>"  width="120" height="100" />
              	</#if>
                </td>
                </tr>
                
                 <tr>
                <th>活动使用说明</th>
                <td>
                <#if czjfestivalact.actDescPic ??>
                   <img src="<#if czjfestivalact.actDescPic ??>${base}${czjfestivalact.actDescPic?html}</#if>"  width="120" height="100" />
            </#if>
                </td>
                <th>二维码使用说明</th>
                <td>
                <#if czjfestivalact.qRcodePic ??>
                   <img src="<#if czjfestivalact.qRcodePic ??>${base}${czjfestivalact.qRcodePic?html}</#if>"  width="120" height="100" />
              </#if>
                </td>
                </tr>
                
                 <tr>
                <th>活动图片说明(顺序)</th>
                <td colspan="3">
                
                   <#list czjfestpics as list>
                    <div style="width: 190px;height: 190px;float: left ;margin-left: 10px;">
                     <div style="width:180px; height: 180px;  margin-top: 5px; margin-left: 5px">
                     <#if list.picPath ?? >
            			<div style="width:150px; height: 150px;  margin-top: 5px; margin-left: 5px">
                          <img alt="" src="${base}${list.picPath!}" width="150px" height="150px"/>
                         </div>
                         </#if>
                       </div>
                     </div>
                    </#list>
                </td>
               
                </tr>


                <tr>
                <th>代言人姓名</th>
                <td>

                 ${czjfestivalact.nickName!?html }
                </td>

                <th>代言人圆形头像</th>
                <td>
                <#if czjfestivalact.ext2 ??>
                 <img src="<#if czjfestivalact.ext2 ??>${base}${czjfestivalact.ext2?html}</#if>"  width="120" height="120" />
                 </#if>
                </td>
                </tr>


            <tr>
                <td colspan="4" width="100%" style="text-align: center;">
                    <!-- <a href="${base}/festivalact/goAdd?festivalActId=${czjfestivalact.festivalActId! }" class="btn btn-success "  >修改</a>
                    <span style="width: 20px;">&nbsp;</span> -->
                    <a class="btn btn-danger " href="javascript:window.history.go(-1)">
                        </span>返回</a>
                </td>
            </tr>

        </table>
    </form>
<!-- 
<form class="form-horizontal" role="form">
                    <fieldset>
                       <div class="form-group">
                         <label class="col-sm-2 control-label" for="ds_host">活动主题</label>
                          <div class="col-sm-4">
                           ${czjfestivalact.festTheme!?html }
                          </div>
                          <label class="col-sm-2 control-label" for="ds_host">活动名称</label>
                          <div class="col-sm-4">
                           ${czjfestivalact.festName!?html }
                          </div>
                       </div>
                       <div class="form-group">
                          <label class="col-sm-2 control-label" for="ds_username">活动开始时间</label>
                          <div class="col-sm-4">
                          <#if (czjfestivalact.beginTime)??>${czjfestivalact.beginTime?string('yyyy-MM-dd HH:mm')}</#if>
                          </div>
                          <label class="col-sm-2 control-label" for="ds_password">活动结束时间</label>
                          <div class="col-sm-4">
                              <#if (czjfestivalact.endTime)??>${czjfestivalact.endTime?string('yyyy-MM-dd HH:mm')}</#if>
                          </div>
                       </div>
                         <div class="form-group">
                          <label class="col-sm-2 control-label" for="ds_username">活动类型</label>
                          <div class="col-sm-4">
                          <#if czjfestivalact.festType ??>
                          		<#if czjfestivalact.festType==1>
                          			线上活动
                          			<#else>
                          			线下活动
                          		</#if>
                          <#else>
                          --
                          </#if>
                          </div>
                          <label class="col-sm-2 control-label" for="ds_password">活动状态</label>
                          <div class="col-sm-4">
                            ${czjfestivalact.festState!?html }
                           <span id="span1"></span>
                          </div>
                       </div>
                         <div class="form-group">
                          <label class="col-sm-2 control-label" for="ds_username">活动代言人姓名</label>
                          <div class="col-sm-4">
                            ${czjfestivalact.nickName!?html }
                          </div>
                          <label class="col-sm-2 control-label" for="ds_password">活动视频</label>
                          <div class="col-sm-4">
                            ${czjfestivalact.venue!?html }
                          </div>
                       </div>
                         <div class="form-group">
                          <label class="col-sm-2 control-label" for="ds_username">评论开关</label>
                          <div class="col-sm-4">
                                       <#if czjfestivalact.onOff ??>
                          		<#if czjfestivalact.onOff==1>
                          			已开启评论
                          			<#else>
                          			未开启评论
                          		</#if>
                          <#else>
                          --
                          </#if>
                          </div>
                              <label class="col-sm-2 control-label" for="ds_name">活动地点</label>
                          <div class="col-sm-4">
                           ${czjfestivalact.venue!?html }
                          </div>
                          
                    </fieldset>
                         <div class="form-group">
                          <label class="col-sm-2 control-label" for="ds_username">活动原价金额</label>
                          <div class="col-sm-4">
                            ${czjfestivalact.festAmount!?html }
                          </div>
                          <label class="col-sm-2 control-label" for="ds_password">活动优惠价格</label>
                          <div class="col-sm-4">
                            ${czjfestivalact.favorablePrice!?html }
                           </div>
                       </div>
                           <div class="form-group">
                          <label class="col-sm-2 control-label" for="ds_username">是否显示在首页</label>
                          <div class="col-sm-4">
                           
                             <#if czjfestivalact.ext4 ??>
                          		<#if czjfestivalact.ext4==1>
                          			是
                          			<#else>
                          			否
                          		</#if>
                          <#else>
                          --
                          </#if>
                          </div>
                          <label class="col-sm-2 control-label" for="ds_password">活动说明</label>
                          <div class="col-sm-4">
                            
                           ${czjfestivalact.fastExplain!?html }
                     
                             </div>
                       </div>
                            <div class="form-group">
                       
                          <label class="col-sm-2 control-label" for="ds_password">活动图片</label>
                          <div class="col-sm-4">
                            
                            <img src="<#if czjfestivalact.festPic ??>${base}${czjfestivalact.festPic?html}</#if>"  width="180" height="150" />
                     
                             </div>
                       </div>
                          
                    <div class="form-group" style="text-align: center;">
                          <label class="col-sm-6  control-label" for="ds_username">
                          <button class="btn btn-default" type="button" onclick="doBack()">返回</button></label>
                          </div>
                       </div>    
                  
                </form> -->
		</div>
</body>
</html> 

<script>

	function doBack(){
			
		history.back();
		
	}
</script>
